package com.bdqn.membersystem.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class GoodsInfo implements Serializable {
    /**
    * 主键id
    */
    private Long id;

    /**
    * 商品编码
    */
    private String goodsSn;

    /**
    * 商品名称
    */
    private String goodsName;

    /**
    * 商品规格
    */
    private String goodsFormat;

    /**
    * 市场价
    */
    private BigDecimal marketPrice;

    /**
    * 优惠价格
    */
    private BigDecimal realPrice;

    /**
    * 状态（1、上架、2、下架）
    */
    private Integer state;

    /**
    * 商品说明
    */
    private String note;

    /**
    * 库存数量
    */
    private Integer num;

    /**
    * 单位
    */
    private String unit;

    /**
    * 创建时间
    */
    private Date createTime;

    /**
    * 最后更新时间
    */
    private Date lastUpdateTime;

    /**
    * 创建人
    */
    private String createdBy;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGoodsSn() {
        return goodsSn;
    }

    public void setGoodsSn(String goodsSn) {
        this.goodsSn = goodsSn;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsFormat() {
        return goodsFormat;
    }

    public void setGoodsFormat(String goodsFormat) {
        this.goodsFormat = goodsFormat;
    }

    public BigDecimal getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(BigDecimal marketPrice) {
        this.marketPrice = marketPrice;
    }

    public BigDecimal getRealPrice() {
        return realPrice;
    }

    public void setRealPrice(BigDecimal realPrice) {
        this.realPrice = realPrice;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", goodsSn=").append(goodsSn);
        sb.append(", goodsName=").append(goodsName);
        sb.append(", goodsFormat=").append(goodsFormat);
        sb.append(", marketPrice=").append(marketPrice);
        sb.append(", realPrice=").append(realPrice);
        sb.append(", state=").append(state);
        sb.append(", note=").append(note);
        sb.append(", num=").append(num);
        sb.append(", unit=").append(unit);
        sb.append(", createTime=").append(createTime);
        sb.append(", lastUpdateTime=").append(lastUpdateTime);
        sb.append(", createdBy=").append(createdBy);
        sb.append("]");
        return sb.toString();
    }
}